package cz.acies.uniql.dialect.builders;


import cz.acies.uniql.metadata.DBMetaData;
import cz.acies.uniql.sql.element.UniQLCondition;

/**
 * Class PostgreConditionRebuilder.
 */
public class OracleConditionRebuilder extends BasicConditionRebuilder
{

	/* (non-Javadoc)
	 * @see cz.acies.uniql.dialect.builders.BasicConditionRebuilder#rebuild(cz.acies.uniql.sql.element.UniQLCondition)
	 */
	public UniQLCondition rebuild(UniQLCondition c) {
		this.aliasMap = c.getAliasMap();
		this.dialect = c.getDialect();
		this.dbmd = (DBMetaData)aliasMap.get("dbmd");
		if (dbmd == null && dialect != null) {
			this.dbmd = dialect.dbmd();
		}
		return c;
	}

	//REXGEP - WHERE NOT regexp_like(tbl0."EMAIL", '^[_a-zA-Z0-9\.\-]+@[_a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,4}$')
}
